import { observable, computed, action, autorun, runInAction, makeObservable ,toJS} from 'mobx';
import unit from '../view/hml'
class Store {
    @observable data = '测试';
    @observable name = '王小明';
    @observable paddlist = [];
    constructor() {
        makeObservable(this)
    }
    @action getPdd=(ajaxCfg)=>{
        unit.getApi(ajaxCfg).then((res)=>{
            console.log(res.data)
            this.paddlist = res.data.data
        })
    }
    // 在本地实时共享
}
export default Store